set_of_dicts = [{'planId': 60012, 'plan_chartNo': 'CB5752000-007R005', 'plan_code': 'JF22-00759', 'plan_name': '6P514', 'plan_sorties_batch_no': '6P'}]
end_of_dicts = [{'planId': 60012, 'plan_chartNo': 'CB5752000-007R005', 'plan_code': 'JF22-00759', 'plan_name': '6P514', 'plan_sorties_batch_no': '6P'}]

new_dicts = []

for set_dict in set_of_dicts:
    corresponding_dict = next((end_dict for end_dict in end_of_dicts
                               if end_dict["planId"] == set_dict["planId"]), None)
    if corresponding_dict:
        new_dict = set_dict.copy()
        for key in set_dict:
            if set_dict[key] != corresponding_dict[key]:
                new_dict[key] = corresponding_dict[key]
        if new_dict != set_dict:  # Only append if changes were made
            new_dicts.append(new_dict)
    else:
        new_dicts.append(set_dict)

print(new_dicts)
